import { Configuration, ILifeCycle, IMidwayContainer } from '@midwayjs/core';
import * as faas from '@midwayjs/faas';
import * as defaultConfig from './config/config.default';
import * as prodConfig from './config/config.prod';
import * as bookScript from 'book-script';
import * as redis from '@midwayjs/redis';

@Configuration({
  imports: [
    faas,
    redis,
    bookScript,
  ],
  importConfigs: [
    {
      default: defaultConfig,
      prod: prodConfig,
    },
  ],
  conflictCheck: true,
})
export class MainConfiguration implements ILifeCycle {
  async onReady(container: IMidwayContainer) {
    debugger;
  }
}
